const connection = require('../app/database');

class WorkTypeService {
  async getWorkTypeList() {
    try {
      const statement = `
        SELECT * FROM workType;
      `;
      const [result] = await connection.execute(statement);
      return result;
    } catch(e) {
      console.log('[workType.service_getWorkTypeList]', e);
    }
  }
}

module.exports = new WorkTypeService();